﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// 课程URL
    /// </summary>
    public struct course
    {
        /// <summary>
        /// 教程标识
        /// </summary>
        public int Id;
        /// <summary>
        /// 
        /// </summary>
        public string Query
        {
            get { return "courseId=" + Id.toString(); }
        }
        /// <summary>
        /// 课程首页
        /// </summary>
        public webView.hashUrl Index
        {
            get { return new webView.hashUrl { Path = "/tutorial/course.html", Query = Query }; }
        }
    }
}
